# -*- coding: utf-8 -*-#
#-------------------------------------------------------------------------------
# 建立者:        潘炎珍  
# Name:         demo01
# Description:
# Author:       98745
# Date:         2019/3/7
#-------------------------------------------------------------------------------

import re
m=re.match('hello','hello')
if m is not None:
    print(m.group())
print(m.__class__.__name__)

m=re.match('hello','word')
if m is not None:
    print(m.group())
print(m)

m=re.match('hello','hello word')
if m is not None:
    print(m.group())
print(m)